module.exports  = {
    // 关闭 eslint
    lintOnSave: false,
    // 跨域
    devServer: {
        host: 'localhost',
        port: 8080,
        proxy: {
            '/api': {
                target: 'http://172.17.147.23:3000',
                changeOrigin: true, // 是否开启跨域
                pathRewrite: {
                    '^/api': ''
                }
            },
            '/fakeapi/':{
                target: 'http://172.17.147.23:3001',
                changeOrigin: true, // 是否开启跨域
                pathRewrite: {
                    '^/fakeapi': ''
                }
            }
        }
    }
}